from django.db import models
from datetime import datetime

# Create your models here.


class Movie(models.Model):
    name = models.CharField(max_length=256, verbose_name="电影名", default="")
    translated_name = models.CharField(max_length=256, verbose_name="译名", default="")
    original_name = models.CharField(max_length=256, verbose_name="片名", default="")
    publish_year = models.IntegerField(verbose_name="年代", default=9999)
    publish_country = models.CharField(max_length=50, verbose_name="产地", default="")
    category = models.CharField(max_length=256, verbose_name="类别", default="")
    language = models.CharField(max_length=50, verbose_name="语言", default="")
    subtitle = models.CharField(max_length=50, verbose_name="字幕", default="")
    publish_date = models.CharField(max_length=256, verbose_name="上映日期", default="")
    imdb_score = models.CharField(max_length=256, verbose_name="IMDb评分", default="")
    douban_score = models.CharField(max_length=256, verbose_name="豆瓣评分", default="")
    file_format = models.CharField(max_length=256, verbose_name="文件格式", default="")
    video_size = models.CharField(max_length=256, verbose_name="视频尺寸", default="")
    file_size = models.CharField(max_length=256, verbose_name="文件大小", default="")
    duration = models.CharField(max_length=256, verbose_name="片长", default="")
    directors = models.CharField(max_length=1024, verbose_name="导演", default="")
    scriptwriters = models.CharField(max_length=1024, verbose_name="编剧", default="")
    actors = models.CharField(max_length=2048, verbose_name="主演", default="")
    tags = models.CharField(max_length=256, verbose_name="标签", default="")
    short_description = models.TextField(verbose_name="简介", default="")
    rewards = models.TextField(verbose_name="获奖情况", default="")
    download_url = models.CharField(max_length=256, verbose_name="下载地址", default="")
    img_md5 = models.CharField(max_length=512, verbose_name="海报MD5", default="")
    movie_info_url = models.CharField(max_length=256, verbose_name="电影页面URL", default="")
    crawl_date = models.DateTimeField(verbose_name="爬取时间", default=datetime.now)
